/**
 * @description token存储函数
 */
const authorizationKey = 'Authorization';

export function getAuthorization() {
	return uni.getStorageSync(authorizationKey);
}

export function setAuthorization(authorization) {
	return uni.setStorageSync(authorizationKey, authorization);
}

export function removeAuthorization() {
	return uni.removeStorageSync(authorizationKey);
}

/**
 * 保存userId
 */
const userIdKey = 'userId';
export function getUserId() {
	return uni.getStorageSync(userIdKey);
}

export function setUserId(authorization) {
	return uni.setStorageSync(userIdKey, authorization);
}

export function removeUserId() {
	return uni.removeStorageSync(userIdKey);
}